'use strict';

function calculate_elements_sum(collection) {
  let sum=collection.reduce(
    function reduced(a,b){
      return a+b;
    }
  );
  return sum;
}

module.exports = calculate_elements_sum;

